<table class="table table-striped table-condensed table-hover">
	<thead>
		<tr>
			<th style="width:30px">번호</th>
			<th style="width:100px">게시판</th>
			<th style="width:130px">원본글</th>
			<th class="">내용</th>
			<th style="width:70px">글쓴이</th>
			<th style="width:80px">등록일</th>
		</tr>
	</thead>
	<tbody>
<?php
$cnt = count($rows);
if ($cnt == 0) {
?>
		<tr class="blank">
			<td colspan="5">No Values</td>
		</tr>
		
<?php
}
else {
	for ($i = 0; $i < count($rows); $i++) {
?>
		<tr data-href="<?php echo $href?>/<?php echo $kong->id ?>/comment/<?php echo urlencode($rows[$i]['idx'])?>"<?php echo (!$rows[$i]['board_id'] )?" class=\"error\"":""?>>
			<td><?php echo $rows[$i]['n']?></td>
			<td><?php echo ( $rows[$i]['board_id'] )?$board[$rows[$i]['board_id']]:"삭제됨"?> (<?php echo $rows[$i]['data_idx']?>)</td>
			<td><?php echo ( $rows[$i]['board_id'] )?$rows[$i]['subject']:"삭제됨"?></td>
			<td class="align-left"><?php echo $rows[$i]['contents']?></td>
			<td><?php echo $rows[$i]['writer']?></td>
			<td><?php echo date("Y/m/d", $rows[$i]['reg_date'])?></td>
		</tr>
<?php
	}
}
?>
	</tbody>
</table>

<div class="pagination pagination-centered"><?php echo $pagination ?></div>